export interface Rules {
  trigger?: string;
  enum?: string;
  len?: string;
  max?: string;
  message?: string;
  min?: string;
  pattern?: string;
  required: boolean;
  element_validation?: boolean;
  type?: string;
}
export interface Panes {
  name: string;
  label: string;
  list: any[];
  showS: string;
  showA: string;
  showE: string;
  actionNo: string;
  attributes: string;
  element_languageTitleCode: string;
  element_tips: string;
}
export interface Colums {
  span: number;
  list: any[];
  showS: string;
  showA: string;
  showE: string;
  actionNo: string;
  mobileSpan: number;
  attributes: string;
  alignCenter: boolean;
}
export interface Button {
  list: any[];
}

export interface ButtonDataType {
  pagesValue?: string;
  parentValue: string;
  entityValue?: string;
}

export interface copyRow {
  fields: string;
}

export interface WidgetFormType {
  display_area: any[]; // 显示区
  hidden_area: any[]; // 隐藏区
  trash_area: any[]; // 回收站区
  button_area: any[]; // 按钮区
  global_page: any; // 全局页面
  config: {
    size?: string;
    labelWidth?: number;
    labelPosition?: string;
    pageType?: boolean; // 分页控制
    // pageHide?: boolean; // 隐藏分页栏
    listHeight?: boolean; // 自适应高度
    listExport?: boolean; // 导出
    pagEnum?: number; // 页面数量
    fieldList?: any; // 导出字段
    exportFileName?: string; // 导出文件名称
    pageh?: string; // 列表高度
    pageSizes?: string; // 可选页面数量
    // locationon?: number; // 前固定列数
    // locationback?: number; // 后固定列数
    // listcontrol?: boolean; // 列表宽度强控
    query?: string; // 查询界面
    listselection?: string; // 列表选择项
    actionNo?: string; // 方法绑定
    displayMode?: string; // 流程默认显示模式
    listPrimaryField?: string; // 列表主键字段
    defaultSortField?: string; // 默认排序字段
    sortBy?: string; // 排序方式
    listUserCustomColumns?: boolean; // 用户自定义列
    listBottomTurnPage?: boolean; // 触底翻页
  };
  phoneHeaderConfig: {
    title?: string; // 导航栏名称
    show?: boolean; // 导航栏是否显示
    leftBtnTitle?: string; // 左按钮名称
    leftBtnMode?: string; // 左按钮类型 0:自定义事件  1:标准返回 2:无
    leftEvent?: string; // 左按钮绑定事件
    rightBtnConfig: {
      element_permissions?: boolean; // 开启权限
      element_enableThe?: boolean; // 按钮启用验证
      element_validationError?: string; // 验证错误提示
      element_title?: string; // 右按钮名称
      element_mode?: string; // 右按钮类型 0:自定义事件  1:标准提交  2:自定义提交  3:无
      element_event?: string; // 右按钮绑定事件
      element_close?: string; // 提交功能类型
      element_Theunit?: string; // 指定表单
      element_sqlFormCode?: string; // 表单验证SQL编号
      element_subtablefields?: string; // 关联子表字段
      element_Thelist?: string; // 指定列表
      element_sqlListCode?: string; // 列表验证SQL编号
      element_action?: string; // action
      element_jsFront?: string; // Js前置回调
      element_jsCallback?: string; // Js成功回调
      element_jsfailCallback?: string; // Js失败回调
      element_jserrorCallback?: string; // Js错误回调
    };
  };
}

export const rules: Rules = {
  trigger: 'blur',
  enum: '',
  len: '',
  max: '',
  message: '',
  min: '',
  pattern: '',
  required: false,
  element_validation: false,
  type: '',
};

export interface conSelectInterface {
  label: string;
  value: string;
  hidden?: boolean;
  timestamp?: string;
}

/** 校验类型 */
export const ruleSelectData = ref<Array<conSelectInterface>>([
  {
    label: '无',
    value: '',
  },
  {
    label: '数字',
    value: 'number',
  },
  {
    label: '整数',
    value: 'integer',
  },
  {
    label: '邮箱地址',
    value: 'email',
  },
  {
    label: '浮点数',
    value: 'float',
  },
]);

/** 控件显示模式 */
export const displayMode = ref<Array<conSelectInterface>>([
  {
    label: '只读',
    value: '0',
  },
  {
    label: '控件',
    value: '1',
  },
  {
    label: '隐藏',
    value: '2',
  },
  {
    label: '失效',
    value: '3',
  },
]);

/** 表单流程默认显示模式 */
export const displayModeForm = ref<Array<conSelectInterface>>([
  {
    label: '查看',
    value: '0',
  },
  {
    label: '新增',
    value: '1',
  },
  {
    label: '修改',
    value: '2',
  },
]);

/** 按钮类型选择 */
export const conSelectType = ref<Array<conSelectInterface>>([
  {
    label: '单行文本',
    value: 'input',
  },
  {
    label: '下拉选择框',
    value: 'select',
  },
  // {
  //   label: '密码框',
  //   value: 'password',
  // },
  {
    label: '多行文本',
    value: 'textarea',
  },
  // {
  //   label: '计数器',
  //   value: 'number',
  // },
  {
    label: '单选框组',
    value: 'radio',
  },
  {
    label: '多选框组',
    value: 'checkbox',
  },
  // {
  //   label: '时间选择器',
  //   value: 'date',
  // },
  {
    label: '日期选择器',
    value: 'time',
  },
  {
    label: '图片',
    value: 'images',
  },
  {
    label: '评分',
    value: 'rate',
  },
  {
    label: '开关',
    value: 'switch',
  },
  {
    label: '滑块',
    value: 'slider',
  },
  {
    label: '按钮',
    value: 'button',
  },
  {
    label: '文件上传',
    value: 'uploadForm',
  },
  {
    label: '富文本编辑器',
    value: 'richtext',
  },
  {
    label: '时间线',
    value: 'timeLine',
  },
  {
    label: '步骤条',
    value: 'steps',
  },
  // {
  //   label: '级联选择器',
  //   value: 'cascader',
  // },
  // {
  //   label: '区域布局',
  //   value: 'grid',
  // },
  // {
  //   label: '标签页',
  //   value: 'tabs',
  // },
  {
    label: '单元',
    value: 'unit',
  },
  {
    label: '弹窗文本',
    value: 'popText',
  },
  {
    label: '动态参数',
    value: 'dynamicParameters',
  },
  {
    label: '扫描文本',
    value: 'inputScan',
  },
]);

/** 这是多选单选展示用数据 */
export const conRadioData = ref<Array<conSelectInterface>>([
  {
    label: 'option 1',
    value: '0',
  },
  {
    label: 'option 2',
    value: '1',
  },
  {
    label: 'option 3',
    value: '2',
  },
]);

/** 按钮类型 */
export const buttonType = ref<Array<conSelectInterface>>([
  {
    label: '自定义提交',
    value: '0',
  },
  {
    label: '标准保存',
    value: '1',
  },
  {
    label: '标准查询',
    value: '2',
  },
  {
    label: '页面弹出',
    value: '3',
  },
  {
    label: '标准删除',
    value: '4',
  },
  {
    label: '无功能',
    value: '5',
  },
  {
    label: '页面打开',
    value: '6',
  },
  {
    label: '新增列',
    value: '7',
  },
  {
    label: '关闭遮罩层',
    value: '8',
  },
  {
    label: '重置',
    value: '9',
  },
  {
    label: 'excel导出',
    value: '10',
  },
  {
    label: '父级传值',
    value: '11',
  },
  {
    label: '嵌入弹窗',
    value: '12',
  },
  {
    label: '弹窗扫描(移动端使用)',
    value: '14',
  },
]);

/** 枚举类型 */
export const enumType = ref<Array<conSelectInterface>>([
  {
    label: '数据字典',
    value: '0',
  },
  {
    label: '枚举',
    value: '1',
  },
]);

/** 保存类型 */
export const saveType = ref<Array<conSelectInterface>>([
  {
    label: '关闭页面刷新父级',
    value: '0',
  },
  {
    label: '刷新本页面',
    value: '1',
  },
  {
    label: '无功能',
    value: '2',
  },
  {
    label: '刷新父级',
    value: '3',
  },
  {
    label: '刷新本页面及父级',
    value: '4',
  },
  {
    label: '重置本页面',
    value: '5',
    hidden: true,
  },
  {
    label: '关闭本页面',
    value: '6',
  },
]);

/** 列表选择数据类型 */
export const listDataType = ref<Array<conSelectInterface>>([
  {
    label: '选择数据',
    value: '0',
  },
  {
    label: '全数据',
    value: '1',
  },
]);

/** 日期控件类型 */
export const dateDataType = ref<Array<conSelectInterface>>([
  {
    label: '时间',
    value: 'time',
  },
  {
    label: '日期',
    value: 'date',
  },
  {
    label: '日期段',
    value: 'daterange',
  },
  {
    label: '日期时间',
    value: 'datetime',
  },
  {
    label: '日期时间段',
    value: 'datetimerange',
  },
  {
    label: '选年',
    value: 'year',
  },
  {
    label: '选月',
    value: 'month',
  },
]);

/** 按钮样式类型 */
export const buttonColorType = ref<Array<conSelectInterface>>([
  {
    label: '普通按钮',
    value: '',
  },
  {
    label: '主要按钮',
    value: 'primary',
  },
  {
    label: '成功按钮',
    value: 'success',
  },
  {
    label: '信息按钮',
    value: 'info',
  },
  {
    label: '警告按钮',
    value: 'warning',
  },
  {
    label: '危险按钮',
    value: 'danger',
  },
  {
    label: '文本按钮',
    value: 'text',
  },
]);

/**
 * 控件类型之下拉框
 */
export const SelectType = ref<Array<conSelectInterface>>([
  {
    label: '普通下拉',
    value: '0',
  },
  {
    label: '多选下拉',
    value: '1',
  },
  {
    label: '关联下拉',
    value: '2',
  },
  {
    label: '懒加载下拉',
    value: '3',
  },
]);
export const SelectType1 = ref<Array<conSelectInterface>>([
  {
    label: '普通下拉',
    value: '0',
  },
  {
    label: '多选下拉',
    value: '1',
  },
  {
    label: '关联下拉',
    value: '2',
  },
]);

/**
 * 控件类型之文件上传
 */
export const UploadSelectType = ref<Array<conSelectInterface>>([
  {
    label: '单文件上传',
    value: '0',
  },
  {
    label: '多文件上传',
    value: '1',
  },
  // {
  //   label: 'execl上传',
  //   value: '2',
  // },
  {
    label: '图片上传',
    value: '3',
  },
  {
    label: '多图片上传',
    value: '4',
  },
]);

/** tabs 风格类型 */
export const StyleType = ref<Array<conSelectInterface>>([
  {
    label: '默认样式',
    value: 'default',
  },
  {
    label: '选项卡样式',
    value: 'card',
  },
  {
    label: '卡片样式',
    value: 'border-card',
  },
]);

/** 联动类型 */
export const LinkageType = ref<Array<conSelectInterface>>([
  {
    label: '父级联动',
    value: '0',
  },
  {
    label: '子级联动',
    value: '1',
  },
  {
    label: '父子级联动',
    value: '2',
  },
]);

/** 折叠面板展示类型 */
export const FoldShowType = ref<Array<conSelectInterface>>([
  {
    label: '顶部折叠',
    value: '0',
  },
  {
    label: '底部折叠',
    value: '1',
  },
]);

/** 分割线方向 */
export const dividerNormalType = ref<Array<conSelectInterface>>([
  {
    label: '横向',
    value: 'horizontal',
  },
  {
    label: '纵向',
    value: 'vertical',
  },
]);

/** 分隔符样式 */
export const dividerStyleType = ref<Array<conSelectInterface>>([
  {
    label: '无',
    value: 'none',
  },
  {
    label: '实线',
    value: 'solid',
  },
  {
    label: '虚线',
    value: 'dashed',
  },
]);

/** 分隔符内容位置 */
export const dividerTextIconsType = ref<Array<conSelectInterface>>([
  {
    label: '左边',
    value: 'left',
  },
  {
    label: '中间',
    value: 'center',
  },
  {
    label: '右边',
    value: 'right',
  },
]);

/** 时间线实例展示type */
export const timeLineType = ref<Array<conSelectInterface>>([
  {
    label: '第一条',
    timestamp: '2023-06-06',
    value: '这是来自描述',
  },
  {
    label: '第二条',
    timestamp: '2023-06-06',
    value: '这是来自描述',
  },
  {
    label: '第三条',
    timestamp: '2023-06-06',
    value: '这是来自描述',
  },
]);

/** 时间线时间戳位置 */
export const timeLinetopOrBotType = ref<Array<conSelectInterface>>([
  {
    label: '顶部',
    value: 'top',
  },
  {
    label: '底部',
    value: 'bottom',
  },
]);

/** 按钮样式类型 */
export const timeLineColorType = ref<Array<conSelectInterface>>([
  {
    label: '无',
    value: '',
  },
  {
    label: '主要',
    value: 'primary',
  },
  {
    label: '成功',
    value: 'success',
  },
  {
    label: '信息',
    value: 'info',
  },
  {
    label: '警告',
    value: 'warning',
  },
  {
    label: '危险',
    value: 'danger',
  },
]);

/** 步骤条执行类型 */
export const StepstatusType = ref<Array<conSelectInterface>>([
  {
    label: '等待',
    value: 'wait',
  },
  {
    label: '有序执行',
    value: 'process',
  },
  {
    label: '完成',
    value: 'finish',
  },
  {
    label: '失败',
    value: 'error',
  },
  {
    label: '成功',
    value: 'success',
  },
]);
/** 步骤条展示示例 */
export const StepsList = ref<Array<conSelectInterface>>([
  {
    label: '第一个',
    value: '这是一条描述',
  },
  {
    label: '第三个',
    value: '这是一条描述',
  },
  {
    label: '第四个',
    value: '这是一条描述',
  },
]);

/** 级联选择方法事件 */
export const CascaderFunction = ref<Array<conSelectInterface>>([
  {
    label: '当绑定值变化时触发的事件',
    value: '@change',
  },
  {
    label: '当展开节点发生变化时触发',
    value: '@expand-change',
  },
  {
    label: '下拉框出现/隐藏时触发',
    value: '@visible-change',
  },
  {
    label: '在多选模式下，移除Tag时触发',
    value: '@remove-tag',
  },
]);

/** 动态参数传参类型 */
export const ParameterType = ref<Array<conSelectInterface>>([
  {
    label: 'sql传参',
    value: '0',
  },
  {
    label: '请求传参',
    value: '1',
  },
]);

/** 显示属性类型 */
export const attributesType = ref<Array<conSelectInterface>>([
  {
    label: '无控制',
    value: '0',
  },
  {
    label: 'PC显示',
    value: '1',
  },
  {
    label: '移动端显示',
    value: '2',
  },
]);

/** 文件类型 */
export const fileType = ref<Array<conSelectInterface>>([
  {
    label: 'PDF',
    value: 'pdf',
  },
  {
    label: 'DOCX',
    value: 'docx',
  },
  {
    label: 'XLSX',
    value: 'xlsx',
  },
  {
    label: '自定义',
    value: 'dlc',
  },
]);

/** input控件类型 */
export const inputType = ref<Array<conSelectInterface>>([
  {
    label: '普通文本',
    value: '0',
  },
  {
    label: '千分位文本',
    value: '1',
  },
]);
/** 弹窗控件类型 */
export const popType = ref<Array<conSelectInterface>>([
  {
    label: '弹窗',
    value: '0',
  },
  {
    label: '嵌入式弹窗',
    value: '1',
  },
]);
/** 用户控件类型 */
export const usersType = ref<Array<conSelectInterface>>([
  {
    label: '弹窗',
    value: '0',
  },
]);

/** tabs Panes */
export const PanesList = ref<Array<Panes>>([
  {
    name: '',
    label: 'Tab1',
    list: [],
    showS: '',
    showA: '',
    showE: '',
    actionNo: '',
    attributes: '',
    element_languageTitleCode: '',
    element_tips: '',
  },
  {
    name: '',
    label: 'Tab2',
    list: [],
    showS: '',
    showA: '',
    showE: '',
    actionNo: '',
    attributes: '',
    element_languageTitleCode: '',
    element_tips: '',
  },
]);

export const ColumsList = ref<Array<Colums>>([
  {
    span: 12,
    list: [],
    showS: '',
    showA: '',
    showE: '',
    actionNo: '',
    mobileSpan: 24,
    attributes: '',
    alignCenter: false,
  },
  {
    span: 12,
    list: [],
    showS: '',
    showA: '',
    showE: '',
    actionNo: '',
    mobileSpan: 24,
    attributes: '',
    alignCenter: false,
  },
]);
export const FoldList = ref<Array<Button>>([
  {
    list: [],
  },
]);

export const widgetForm: WidgetFormType = {
  display_area: [], // 显示区
  hidden_area: [], // 隐藏区
  trash_area: [], // 回收站区
  button_area: [], // 按钮区
  global_page: {}, // 全局页面
  config: {
    size: 'default',
    labelWidth: 100,
    labelPosition: 'right',
    pageType: false,
    // pageHide: false,
    listHeight: false,
    listExport: false,
    exportFileName: '',
    fieldList: [],
    pagEnum: 10,
    pageSizes: '10, 20, 50, 100',
    pageh: '',
    // locationon: 0,
    // locationback: 0,
    // listcontrol: false,
    query: '',
    listselection: '0',
    actionNo: '',
    displayMode: '',
  },
  phoneHeaderConfig: {
    title: '名称',
    show: true,
    leftBtnTitle: '返回',
    leftBtnMode: '1',
    leftEvent: '',
    rightBtnConfig: {
      element_permissions: false,
      element_enableThe: false,
      element_validationError: '',
      element_title: '提交',
      element_mode: '1',
      element_event: '',
      element_close: '2',
      element_Theunit: '',
      element_sqlFormCode: '',
      element_subtablefields: '',
      element_Thelist: '',
      element_sqlListCode: '',
      element_action: '',
      element_jsFront: '',
      element_jsCallback: '',
      element_jsfailCallback: '',
      element_jserrorCallback: '',
    },
  },
};

interface FormComponent {
  element_code?: string; // 字段标识
  element_control?: string; // 类型
  element_name?: string; // 名称
  element_inpt?: string | Array<string>; // 默认值
  element_placeholder?: string; // 占位符
  //disabled?: boolean; // 禁用
  clearable?: boolean; // 可清除
  //readonly?: boolean; // 只读
  maxlength?: string; // 最大输入 页面呈现
  width?: string; //列宽
  height?: string; // 列高
  showS?: string; // 查看
  showA?: string; // 新增
  showE?: string; // 修改
  attributes?: string; // 显示属性
  element_permissions?: boolean; // 开启权限
  widthOf?: string; // input宽度
  heightOf?: string; // input高度
  actionNo?: string; // 方法绑定
  displayMode?: boolean; // 显示模式是否显示
  filterable?: boolean; // 是否可搜索
  element_Propermissions?: boolean; // 流程权限
  element_div?: string; // 属性自定义
  rules?: Rules; // 验证
  showWordLimit?: boolean; // 是否显示字数
  element_enum?: string; // 枚举选择项
  element_reqenum?: string; // 枚举代码
  multiple?: boolean; // 是否可多选
  // element_parameter?: string; // 参数传输
  element_type?: string | boolean; // 按钮类型/时间类型/卡片风格样式/时间线icon类型
  element_button_loading?: boolean; // 是否启动loading
  element_close?: string; // 保存功能类型
  element_enableThe?: boolean; // 按钮启用验证
  element_sqlFormCode?: string; // 表单sql验证编号
  element_sqlListCode?: string; // 列表sql验证编号
  element_Processbutton?: boolean; // 流程按钮
  element_Theunit?: string; // 指定表单
  element_Thelist?: string; // 指定列表
  element_action?: string; // action
  element_listdataSelect?: string; // 列表选择数据
  element_jsFront?: string; // Js前置
  element_jsCallback?: string; // Js回调
  activeText?: string; // switch 打开时的文字描述
  inactiveText?: string; // switch 的状态为 off 时的文字描述
  element_color?: string; // button按钮颜色
  element_nameprefix?: string; // 前置内容
  element_namesuffix?: string; // 后置内容
  element_prepend?: string; // 前置标签内容
  element_append?: string; // 后置标签内容
  element_activeValue?: string; // 开关选中值
  element_inactiveValue?: string; // 开关未选中值
  element_sideButton?: boolean; // 是否并排按钮
  element_Processidentifier?: string; // 指向流程标识
  element_Processdefault?: string; // 流程默认变量
  element_Processelement?: string; // 流程元素变量
  element_Propermissionide?: string; //流程只读权限标识
  element_Processmodifications?: string; //流程修改权限标识
  element_format?: string; // 时间格式
  element_editable?: boolean; //文本框是否可输入
  element_fit?: string; // 图片占地
  element_previewImages?: boolean; // 是否预览图片
  element_button_type?: string; // 按钮样式类型
  element_button_name?: string; // 上传中需要用到的name
  element_limit?: number; //文件上传最大数量
  element_accept?: string; // 文件上传类型
  element_onSuccess?: string; // 文件上传成功的钩子
  element_beforeUpload?: string; // 文件上传之前的钩子
  element_execl?: boolean; // EXECL上传
  element_covers?: boolean; //是否覆盖文件
  element_coding?: string; // 属性编码
  element_attributeID?: string; // 属性ID
  element_filesize?: number; // 文件上传大小
  element_fileress?: string; //文件地址
  element_upName?: string; //弹出名称
  element_showFileList?: boolean; //是否显示上传列表
  element_onRemove?: string; // 文件移除的钩子
  element_custom?: string; // 自定义代码
  element_diaologWidth?: string; // 弹窗宽度
  element_diaologHeight?: string; // 弹窗宽度
  element_tabPosition?: string; // 选项卡位置
  element_stretch?: boolean; // 标签页标签宽度是否自撑开
  element_connect?: string; // 单元资源编号
  element_popunit?: boolean; // 弹出单元
  options?: any; // 配置
  panes?: any; // tabsArray
  isShowType?: boolean; // 用于前端是否显示类型字段
  element_list?: Array<ButtonDataType>; // 用于按钮父级传值
  element_RelatedchildTable?: string; // 关联子表
  element_subtablefields?: string; // 标准保存关联子表字段 此字段体现在vue文件中 ts中不用书写
  element_fixedcolumn?: boolean; // 是否固定左列
  element_fixedcolumnRight?: boolean; // 固定右列
  element_linkage?: string; // 下拉框联动类型
  element_bound?: string; // 子级元素
  element_child?: string; // 父级元素
  element_ParameterName?: string; // 关联参数名
  element_IconsText?: string; // 折叠面板中图标
  element_foldShowType?: string; // 复合类型/中间现实
  minlength?: number; // 滑块/评分最小
  step?: number; // 滑块步骤数值
  range?: boolean; // 滑块是否开启范围选择
  allowHalf?: boolean; // 是否允许半选评分
  element_placement?: string; //时间戳位置或嵌入弹窗展示的位置
  element_typeSuccess?: string; // 节点成功颜色
  element_typeError?: string; // 节点失败颜色
  element_space?: string; //每个 step 的间距
  direction?: string; // 显示方向
  element_active?: number; // 当前激活步骤
  element_processStatus?: string; // 设置当前步骤的状态
  element_finishStatus?: string; // 设置结束步骤的状态
  element_alignCenter?: boolean; //进行居中对齐
  element_simple?: boolean; //是否应用简洁风格
  element_marginTop?: string; // 顶部外边距
  remoteFunc?: string; // 级联下拉远端方法
  showAllLevels?: boolean; // 级联下拉是否不显示最后一级
  checkStrictly?: boolean; // 级联取消父子选中
  dynamicLoading?: boolean; // 级联动态加载子节点
  getCheckedNodes?: boolean; // 级联是否单传数据
  fontSize?: string; // 字体大小
  collApsible?: boolean; // 初始是否折叠
  element_corresponding?: string; // 步骤条对应元素
  element_marginBottom?: string; // 底部外边距
  element_fieldName?: string; // 字段名称
  element_selectField?: string; // 选择字段
  element_exportAll?: boolean; // 全部导出
  element_classValue?: number | string; // 值的阶级
  element_subfield?: string; // 副字段
  element_returnMethod?: string; // 回传方法
  element_transferMethod?: string; // 传递方法
  element_parameterType?: string; // 传参类型
  element_sql?: string; // 赋值sql
  element_dynamicUnit?: boolean; // 单元 是否动态单元
  element_dynamicCode?: string; // 单元 动态编号
  element_languageTitleCode?: string; // 多语言标题编号
  element_fieldBinding?: string; // 列表字段绑定事件
  element_validationError?: string; // 按钮验证错误提示
  element_jsfailCallback?: string; // Js失败回调
  element_jserrorCallback?: string; // Js错误回调
  element_exportFileName?: string; // 导出文件的名称
  element_isField?: boolean; // 是否导出字段
  element_labelWidth?: string; // 表单独立label宽度
  element_initiateProceSelectNode?: boolean; // 发起流程选择节点人员
  element_closeCallback?: string; // JS关闭页面回调
  element_summaryCurrentPage?: boolean; // 当前页汇总
  element_allSummary?: boolean; // 全部汇总
  element_entityAssociation?: boolean; // 实体关联
  element_collapseTags?: boolean; // 合并选择显示
  element_sort?: boolean; // 排序
  element_sortNum?: boolean; // 数字排序
  element_lineFeed?: boolean; //列表换行
  element_clearSelectiondata?: boolean; // 清除数据
  element_copyRow?: boolean; // 列表复制行数据check
  element_copyRowFields?: copyRow[]; // 复制行字段
  element_tipsIcon?: string; // tips图标选择
  element_tipsText?: string; // tips内容
  element_cannotDelete?: boolean; // 不可删除
  element_openNewPage?: boolean; // 新页面打开
  element_non_functional_div?: boolean; // 无功能div
  element_default_time_period?: string; // 默认时间段
}
// 基础
export const basicComponents: Array<FormComponent> = [
  {
    element_name: '单行文本',
    element_code: '',
    element_control: 'input',
    element_placeholder: '',
    element_inpt: '',
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    // element_div: '',
    maxlength: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    width: '100%',
    height: '48px',
    // widthOf: '100%',
    actionNo: '',
    // disabled: false,
    clearable: true,
    // readonly: false,
    displayMode: true,
    // showWordLimit: false,
    element_nameprefix: '',
    element_namesuffix: '',
    element_prepend: '',
    element_append: '',
    element_type: '0',
    element_labelWidth: '',
    isShowType: true,
    rules,
  },
  // {
  //   element_name: '密码框',
  //   element_control: 'password',
  //   width: '100%',
  //   height: '32px',
  // },
  {
    element_name: '多行文本',
    element_code: '',
    element_control: 'textarea',
    element_placeholder: '',
    element_inpt: '',
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    // element_div: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    maxlength: '',
    width: '100%',
    height: '100px',
    // widthOf: '100%',
    actionNo: '',
    element_labelWidth: '',
    // disabled: false,
    clearable: true,
    // readonly: false,
    displayMode: true,
    // showWordLimit: false,
    isShowType: true,
    rules,
  },
  // {
  //   element_name: '计数器',
  //   element_control: 'number',
  //   width: '100%',
  //   height: '32px',
  // },
  {
    element_name: '单选框组',
    element_code: '',
    element_control: 'radio',
    element_inpt: '',
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    // element_div: '',
    attributes: '',
    showS: '0',
    showA: '1',
    showE: '1',
    width: '100%',
    height: '48px',
    // widthOf: '',
    // disabled: false,
    displayMode: true,
    actionNo: '',
    // element_enum: '',
    element_reqenum: '',
    element_labelWidth: '',
    isShowType: true,
    rules: {
      trigger: 'blur',
      message: '',
      required: false,
      element_validation: false,
    },
  },
  {
    element_name: '多选框组',
    element_code: '',
    element_control: 'checkbox',
    element_inpt: '', // []
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    // element_div: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    width: '100%',
    height: '48px',
    // widthOf: '',
    element_labelWidth: '',
    // disabled: false,
    displayMode: true,
    // element_enum: '',
    actionNo: '',
    element_reqenum: '',
    isShowType: true,
    rules: {
      trigger: 'blur',
      message: '',
      required: false,
      element_validation: false,
    },
  },
  // {
  //   label: '时间选择器',
  //   element_control: 'time',
  //   options: {
  //     defaultValue: '',
  //     width: '',
  //     placeholder: '请选择时间',
  //     format: 'HH:mm:ss',
  //     valueFormat: 'HH:mm:ss',
  //     readonly: false,
  //     editable: true,
  //     clearable: true,
  //     disabled: false,
  //     rules,
  //   },
  // },
  {
    element_name: '日期选择器',
    element_control: 'time',
    element_code: '',
    element_inpt: '',
    element_languageTitleCode: '',
    width: '100%',
    height: '53px',
    element_placeholder: '',
    element_format: '',
    clearable: true,
    element_type: 'time',
    // widthOf: '100%',
    actionNo: '',
    element_labelWidth: '',
    element_permissions: false,
    element_Propermissions: false,
    displayMode: true,
    isShowType: true,
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    element_default_time_period: '',
    rules,
    // disabled: false,
    // element_editable: true,
  },
  {
    element_name: '评分',
    element_control: 'rate',
    element_code: '',
    element_inpt: '',
    element_languageTitleCode: '',
    width: '100%',
    displayMode: true,
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    element_labelWidth: '',
    maxlength: '5',
    allowHalf: false,
    rules,
  },
  {
    element_name: '下拉选择框',
    element_code: '',
    element_control: 'select',
    element_inpt: '',
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    element_placeholder: '',
    // element_div: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    width: '100%',
    height: '48px',
    // widthOf: '100%',
    actionNo: '',
    element_labelWidth: '',
    // element_parameter: '',
    // multiple: false,
    element_type: '0',
    clearable: true,
    // filterable: false,
    // disabled: false,
    displayMode: true,
    // element_enum: '',
    isShowType: true,
    element_reqenum: '',
    element_linkage: '',
    element_list: [
      {
        parentValue: '',
        entityValue: '',
      },
    ],
    rules,
  },
  {
    element_name: '开关',
    element_code: '',
    element_control: 'switch',
    element_inpt: '',
    element_languageTitleCode: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    width: '100%',
    height: '48px',
    actionNo: '',
    // disabled: false,
    displayMode: true,
    element_activeValue: '1',
    element_inactiveValue: '0',
    activeText: '',
    inactiveText: '',
    element_labelWidth: '',
    isShowType: true,
    rules: {
      trigger: 'blur',
      message: '',
      required: false,
    },
  },
  {
    element_name: '按钮',
    element_code: '',
    element_control: 'button',
    element_inpt: '',
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    // element_div: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    width: '100%',
    height: '48px',
    widthOf: '',
    heightOf: '',
    actionNo: '',
    element_type: '0',
    element_close: '2',
    // disabled: false,
    element_sideButton: true,
    displayMode: true,
    element_enableThe: false,
    element_Theunit: '',
    element_Thelist: '',
    element_action: '',
    element_listdataSelect: '',
    element_jsFront: '',
    element_jsCallback: '',
    element_color: '',
    element_nameprefix: '',
    element_namesuffix: '',
    element_button_type: 'primary',
    element_sqlFormCode: '',
    element_sqlListCode: '',
    element_jsfailCallback: '',
    element_jserrorCallback: '',
    isShowType: false,
    element_openNewPage: false,
  },
  {
    element_name: '图片',
    element_code: '',
    element_control: 'images',
    width: '100%',
    height: '100px',
    widthOf: '100px',
    actionNo: '',
    element_inpt: '',
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    displayMode: true,
    element_action: '',
    element_fit: 'fill',
    isShowType: true,
    showS: '0',
    showA: '1',
    showE: '1',
    // element_previewImages: true,
  },
  {
    element_name: '滑块',
    element_code: '',
    element_control: 'slider',
    element_inpt: '',
    element_languageTitleCode: '',
    width: '100%',
    isShowType: true,
    displayMode: true,
    showS: '0',
    showA: '1',
    showE: '1',
    element_labelWidth: '',
    attributes: '',
    minlength: 0,
    maxlength: '100',
    step: 1,
    range: false,
    rules,
  },
  //   {
  //     label: '文字',
  //     element_control: 'text',
  //     options: {
  //       defaultValue: 'This is a text',
  //     },
  //   },
];
// 快速
export const fastComponent: Array<FormComponent> = [
  {
    element_name: '多选下拉',
    element_code: '',
    element_control: 'select',
    element_inpt: '',
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    element_placeholder: '',
    // element_div: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    width: '100%',
    height: '48px',
    // widthOf: '100%',
    actionNo: '',
    element_labelWidth: '',
    // element_parameter: '',
    // multiple: false,
    element_type: '1',
    clearable: true,
    // filterable: false,
    // disabled: false,
    displayMode: true,
    isShowType: true,
    // element_enum: '',
    element_reqenum: '',
    element_collapseTags: false,
    rules,
  },
  {
    element_name: '日期时间',
    element_control: 'time',
    element_code: '',
    element_inpt: '',
    element_languageTitleCode: '',
    width: '100%',
    height: '53px',
    element_placeholder: '',
    element_format: '',
    clearable: true,
    element_type: 'datetime',
    // widthOf: '100%',
    actionNo: '',
    element_labelWidth: '',
    element_permissions: false,
    element_Propermissions: false,
    displayMode: true,
    isShowType: true,
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    rules,
    // disabled: false,
    // element_editable: true,
  },
  {
    element_name: '标准保存',
    element_code: '',
    element_control: 'button',
    element_inpt: '',
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    // element_div: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    width: '100%',
    height: '48px',
    widthOf: '',
    heightOf: '',
    actionNo: '',
    element_type: '1',
    element_close: '2',
    // disabled: false,
    element_sideButton: true,
    displayMode: true,
    element_enableThe: false,
    element_Theunit: '',
    element_Thelist: '',
    element_action: '',
    isShowType: false,
    element_listdataSelect: '',
    element_jsFront: '',
    element_jsCallback: '',
    element_color: '',
    element_nameprefix: '',
    element_namesuffix: '',
    element_button_type: 'primary',
    element_sqlFormCode: '',
    element_sqlListCode: '',
    element_jsfailCallback: '',
    element_jserrorCallback: '',
    element_openNewPage: false,
  },
  {
    element_name: '页面弹出',
    element_code: '',
    element_control: 'button',
    element_inpt: '',
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    // element_div: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    width: '100%',
    height: '48px',
    widthOf: '',
    heightOf: '',
    actionNo: '',
    element_type: '3',
    isShowType: false,
    element_close: '2',
    // disabled: false,
    element_sideButton: true,
    displayMode: true,
    element_enableThe: false,

    element_Theunit: '',
    element_Thelist: '',
    element_action: '',
    element_listdataSelect: '',
    element_jsFront: '',
    element_jsCallback: '',
    element_color: '',
    element_nameprefix: '',
    element_namesuffix: '',
    element_button_type: 'primary',
    element_upName: '',
    element_closeCallback: '',
    element_openNewPage: false,
  },
  {
    element_name: '关闭页面',
    element_code: '',
    element_control: 'button',
    element_inpt: '',
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    // element_div: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    width: '100%',
    height: '48px',
    widthOf: '',
    heightOf: '',
    actionNo: '',
    element_type: '8',
    element_close: '2',
    // disabled: false,
    element_sideButton: true,
    displayMode: true,
    element_enableThe: false,
    isShowType: false,

    element_Theunit: '',
    element_Thelist: '',
    element_action: '',
    element_listdataSelect: '',
    element_jsFront: '',
    element_jsCallback: '',
    element_color: '',
    element_nameprefix: '',
    element_namesuffix: '',
    element_button_type: 'primary',
    element_openNewPage: false,
  },
  {
    element_name: '千分位文本',
    element_code: '',
    element_control: 'input',
    element_placeholder: '',
    element_inpt: '',
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    // element_div: '',
    maxlength: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    width: '100%',
    height: '48px',
    // widthOf: '100%',
    actionNo: '',
    element_labelWidth: '',
    // disabled: false,
    clearable: true,
    // readonly: false,
    displayMode: true,
    // showWordLimit: false,
    element_nameprefix: '',
    element_namesuffix: '',
    element_prepend: '',
    element_append: '',
    element_type: '1',
    isShowType: true,
    rules,
  },
];
// 高级
export const advanceComponents: Array<FormComponent> = [
  {
    element_name: '文件上传',
    element_control: 'uploadForm',
    width: '100%',
    height: '',
    widthOf: '115px',
    heightOf: '',

    element_code: '',
    element_inpt: '', // []
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    // element_div: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    actionNo: '',
    element_type: '0',
    // element_close: '2',
    // disabled: false,
    element_sideButton: false,
    displayMode: true,
    // multiple: false,
    element_color: '',
    element_nameprefix: '',
    element_namesuffix: '',
    element_button_type: 'primary',
    element_button_name: '文件上传',
    element_labelWidth: '',
    element_limit: 1,
    element_accept: '',
    isShowType: true,
    element_action: '',
    element_onSuccess: '',
    element_beforeUpload: '',
    element_execl: false,
    element_covers: false,
    element_coding: '',
    element_attributeID: '',
    element_filesize: 1,
    element_fileress: '',
    element_showFileList: false,
    element_onRemove: '',
    rules: {
      required: false,
    },
  },
  {
    element_name: '自定义',
    element_control: 'custom',
    element_code: '',
    element_languageTitleCode: '',
    element_custom: '',
    width: '100%',
    height: '',
    element_permissions: false,
    element_Propermissions: false,
    displayMode: true,
    showS: '',
    showA: '',
    showE: '',
    attributes: '',
  },
  {
    element_name: '单元',
    element_control: 'unit',
    element_code: '',
    element_languageTitleCode: '',
    width: '100%',
    element_connect: '',
    element_popunit: false,
    displayMode: true,
    element_permissions: false,
    isShowType: true,
    element_Propermissions: false,
    element_dynamicUnit: false,
    showS: '',
    showA: '',
    showE: '',
    attributes: '',
  },
  {
    element_name: '弹窗文本',
    element_code: '',
    element_control: 'popText',
    element_placeholder: '',
    element_inpt: '',
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    element_type: '0',
    // element_div: '',
    maxlength: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    width: '100%',
    height: '48px',
    // widthOf: '100%',
    actionNo: '',
    element_labelWidth: '',
    element_action: '',
    // disabled: false,
    clearable: true,
    // readonly: false,
    displayMode: true,
    // showWordLimit: false,
    element_diaologWidth: '',
    element_diaologHeight: '',
    element_nameprefix: '',
    element_namesuffix: '',
    element_prepend: '',
    element_append: '',
    element_upName: '',
    element_closeCallback: '',
    isShowType: true,
    element_list: [
      {
        pagesValue: '',
        parentValue: '',
      },
    ],
    rules,
  },
  {
    element_name: '富文本编辑器',
    element_control: 'richtext',
    element_code: '',
    element_languageTitleCode: '',
    width: '100%',
    height: '400px',
    element_inpt: '',
    isShowType: true,
    displayMode: true,
    element_labelWidth: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
  },
  {
    element_name: '时间线',
    element_control: 'timeLine',
    element_code: '',
    element_languageTitleCode: '',
    width: '100%',
    height: '',
    isShowType: true,
    element_placement: 'top',
    element_typeSuccess: '',
    element_typeError: '',
    displayMode: true,
    element_reqenum: '',
    element_action: '',
    actionNo: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
  },
  {
    element_name: '步骤条',
    element_control: 'steps',
    element_code: '',
    element_languageTitleCode: '',
    width: '100%',
    height: '',
    isShowType: true,
    displayMode: true,
    element_reqenum: '',
    element_space: '',
    direction: 'horizontal',
    element_active: 0,
    element_processStatus: '',
    element_finishStatus: '',
    element_alignCenter: true,
    element_simple: false,
    element_IconsText: '',
    element_corresponding: '',
    actionNo: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
  },
  {
    element_name: '级联选择器',
    element_control: 'cascader',
    element_code: '',
    element_languageTitleCode: '',
    width: '100%',
    // widthOf: '',
    element_placeholder: '',
    clearable: false,
    multiple: false,
    checkStrictly: true,
    displayMode: true,
    filterable: false,
    showAllLevels: false,
    // dynamicLoading: false,
    // getCheckedNodes: false,
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    actionNo: '',
    // remoteFunc
    element_action: '/js/mock.json',
    element_classValue: '',
    element_subfield: '',
    element_labelWidth: '',
    options: {
      props: {
        label: 'label',
        value: 'value',
        children: 'children',
        disabled: 'disabled',
      },
    },
    rules,
  },
  {
    element_name: '流程意见',
    element_control: 'processAdvice',
    element_code: '',
    element_languageTitleCode: '',
    width: '100%',
    height: '100px',
    displayMode: true,
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    element_Propermissions: false,
    element_labelWidth: '',
    element_permissions: false,
    element_placeholder: '',
    element_inpt: '',
    // element_div: '',
    maxlength: '',
    // widthOf: '100%',
    actionNo: '',
    // disabled: false,
    clearable: true,
    // readonly: false,
    // showWordLimit: false,
    rules,
  },
  {
    element_name: '用户选择',
    element_control: 'userChoice',
    element_code: '',
    element_placeholder: '',
    element_inpt: '',
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    element_type: '0',
    // element_div: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    width: '100%',
    height: '48px',
    // widthOf: '100%',
    actionNo: '',
    // disabled: false,
    clearable: true,
    // readonly: false,
    displayMode: true,
    // showWordLimit: false,
    element_diaologWidth: '',
    element_diaologHeight: '',
    element_nameprefix: '',
    element_namesuffix: '',
    element_prepend: '',
    element_append: '',
    element_upName: '',
    element_returnMethod: '',
    element_transferMethod: '',
    element_labelWidth: '',
    rules,
  },
  {
    element_name: '动态参数',
    element_code: '',
    element_control: 'dynamicParameters',
    element_placeholder: '',
    element_inpt: '',
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    // element_div: '',
    maxlength: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    width: '100%',
    height: '48px',
    // widthOf: '100%',
    actionNo: '',
    // disabled: false,
    clearable: true,
    // readonly: false,
    displayMode: true,
    // showWordLimit: false,
    element_nameprefix: '',
    element_namesuffix: '',
    element_prepend: '',
    element_append: '',
    isShowType: true,
    element_parameterType: '',
    element_labelWidth: '',
    rules,
  },
  {
    element_name: '文档预览',
    element_code: '',
    element_languageTitleCode: '',
    element_control: 'filePreview',
    element_action: '',
    element_type: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    width: '100%',
    height: '48px',
    actionNo: '',
  },
  {
    element_name: '复制行',
    element_code: '',
    element_control: 'copyRow',
    element_inpt: '',
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    // element_div: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    width: '100%',
    height: '48px',
    widthOf: '',
    heightOf: '',
    actionNo: '',
    element_type: '13',
    element_close: '2',
    // disabled: false,
    element_sideButton: true,
    displayMode: true,
    element_enableThe: false,
    element_Theunit: '',
    element_Thelist: '',
    element_action: '',
    element_listdataSelect: '',
    element_jsFront: '',
    element_jsCallback: '',
    element_color: '',
    element_nameprefix: '',
    element_namesuffix: '',
    element_button_type: 'primary',
    element_sqlFormCode: '',
    element_sqlListCode: '',
    element_jsfailCallback: '',
    element_jserrorCallback: '',
    isShowType: false,
    element_copyRowFields: [
      {
        fields: '',
      },
    ],
  },
  {
    element_name: '提示',
    element_code: '',
    element_control: 'tips',
    element_placement: 'top',
    showS: '0',
    showA: '1',
    showE: '1',
    width: '100%',
    height: '48px',
    // widthOf: '',
    // heightOf: '',
    actionNo: '',
    attributes: '',
    displayMode: true,
    element_tipsIcon: '',
    element_tipsText: '',
  },
  {
    element_name: '扫描文本',
    element_code: '',
    element_control: 'inputScan',
    element_placeholder: '',
    element_inpt: '',
    element_languageTitleCode: '',
    element_permissions: false,
    element_Propermissions: false,
    // element_div: '',
    maxlength: '',
    showS: '0',
    showA: '1',
    showE: '1',
    attributes: '',
    width: '100%',
    height: '48px',
    // widthOf: '100%',
    actionNo: '',
    element_labelWidth: '',
    // disabled: false,
    clearable: true,
    // readonly: false,
    displayMode: true,
    // showWordLimit: false,
    element_nameprefix: '',
    element_namesuffix: '',
    element_prepend: '',
    // element_append: '扫描',
    element_type: '2',
    isShowType: true,
    rules,
    element_jsFront: '',
  },
];
// 布局
export const layoutComponents = [
  {
    element_name: '分割线',
    element_control: 'divider',
    element_code: '',
    element_languageTitleCode: '',
    width: '100%',
    height: '',
    fontSize: '',
    element_marginTop: '',
    element_permissions: false,
    element_color: '',
    displayMode: true,
    showS: '',
    showA: '',
    showE: '',
    attributes: '',
    options: {
      // direction: 'horizontal',
      border_style: 'solid',
      content_position: 'center',
      element_IconsText: '',
    },
    actionNo: '',
  },
  {
    element_name: '标签页',
    element_control: 'tabs',
    element_code: '',
    element_languageTitleCode: '',
    width: '100%',
    element_marginTop: '',
    element_permissions: false,
    options: {
      type: 'border-card',
      tab_position: 'top',
      stretch: false,
    },
    panes: PanesList,
    actionNo: '',
  },
  {
    element_name: '区域布局',
    element_control: 'grid',
    element_code: '',
    element_languageTitleCode: '',
    width: '100%',
    element_marginTop: '',
    element_marginBottom: '',
    element_permissions: false,
    columns: ColumsList,
    actionNo: '',
    options: {
      gutter: 0,
      justify: 'start',
      align: 'top',
    },
  },
  {
    element_name: '按钮区',
    element_control: 'buttonArea',
    element_code: '',
    element_languageTitleCode: '',
    width: '100%',
    list: [],
    displayMode: true,
    element_permissions: false,
    showS: '',
    showA: '',
    showE: '',
    attributes: '',
    actionNo: '',
  },
  {
    element_name: '折叠面板',
    element_control: 'foldedPanel',
    element_code: '',
    element_languageTitleCode: '',
    width: '100%',
    panel: FoldList,
    element_marginTop: '',
    element_permissions: false,
    fontSize: '1',
    displayMode: true,
    showS: '',
    showA: '',
    showE: '',
    attributes: '',
    element_foldShowType: '0',
    collApsible: false,
    actionNo: '',
  },
  {
    element_name: 'DIV包裹布局',
    element_control: 'divLayout',
    element_code: '',
    element_languageTitleCode: '',
    width: '100%',
    div_list: FoldList,
    displayMode: true,
    element_permissions: false,
    element_non_functional_div: false,
    showS: '',
    showA: '',
    showE: '',
    attributes: '',
    actionNo: '',
  },
];

/** 移动端左上角按钮类型 */
export const phoneLeftButtonType = ref<Array<conSelectInterface>>([
  {
    label: '自定义事件',
    value: '0',
  },
  {
    label: '标准返回',
    value: '1',
  },
  {
    label: '无',
    value: '2',
  },
]);

/** 移动端右上角按钮类型 */
export const phoneRightButtonType = ref<Array<conSelectInterface>>([
  {
    label: '自定义事件',
    value: '0',
  },
  {
    label: '标准提交',
    value: '1',
  },
  {
    label: '自定义提交',
    value: '2',
  },
  {
    label: '无',
    value: '3',
  },
]);
